// require('./models/sync');

const sequelize = require('./models/db');

// 测试连接是否链接成功
(async () => {
  try {
    // 测试连接是否链接成功
    await sequelize.authenticate();
    console.log('成功链接', 'log');
  } catch (err) {
    console.log(err, '链接失败');
  }
})();

// sequelize.close(); 主动关闭链接
